package cn.yto.print.model.request;

import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
public class XhsnPrintRequest {

    private String cmd;
    private String requestID;
    private String version;
    private Task task;

    @Data
    public static class Task {
        private String taskID;
        private String printer;
        private boolean preview;
        private int firstDocumentNumber;
        private int totalDocumentCount;
        private List<Document> documents;
    }

    @Data
    public static class Document {
        private String documentID;
        private List<Map<String, Object>> contents;
    }

}
